<?php
/**
 * Created by PhpStorm.
 * User: FAN
 * Date: 2019/11/20
 * Time: 15:11
 */
$curl = curl_init('https://www.lagou.com/zhaopin/PHP/?labelWords=label');
curl_setopt($curl, CURLOPT_FAILONERROR, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$result = curl_exec($curl);
$preg = '#<li class="con_list_item default_list" .*>.*<h3>(.*)</h3>.*<span class="add">(.*)</span>.*<span class="money">(.*)</span>.*<!--<i></i>-->(.*)</div>.*<a .*>(.*)</a>.*</li>#isU';
preg_match_all($preg,$result,$arr);
print_r($arr);
//echo $result;